package cn.iocoder.yudao.module.exam.controller.admin.questions.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 考试题库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class QuestionsRespVO {

    @Schema(description = "题目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2933")
    @ExcelProperty("题目ID")
    private Long id;

    @Schema(description = "年级")
    @ExcelProperty(value = "年级", converter = DictConvert.class)
    @DictFormat("exam_grade") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String grade;

    @Schema(description = "学科")
    @ExcelProperty(value = "学科", converter = DictConvert.class)
    @DictFormat("exam_subject") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String subject;

    @Schema(description = "来源", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("来源")
    private String source;

    @Schema(description = "题型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("题型")
    private String questionType;

    @Schema(description = "题目")
    @ExcelProperty("题目")
    private String questionContent;

    @Schema(description = "答案")
    @ExcelProperty("答案")
    private String standardAnswer;

    @Schema(description = "答案解析")
    @ExcelProperty("答案解析")
    private String answerAnalysis;

    @Schema(description = "评分标准")
    @ExcelProperty("评分标准")
    private String scoringCriteria;

    @Schema(description = "知识点")
    @ExcelProperty("知识点")
    private String knowledgePoints;

    @Schema(description = "难度等级(1-5)")
    @ExcelProperty("难度等级(1-5)")
    private Integer difficultyLevel;

}